import request from "@/utils/request";

const api = '/credit-review-domain/'
const orderApi = '/order-domain/'

/**
 *  订单详情
 * **/
// 添加黑名单
export async function addBlacklist(params) {
    return await request.post(api + 'approveDetails/addBlacklist', params)
}

//添加备注
export async function addTrustInfo(params) {
    return await request.post(api + 'approveDetails/addTrustInfo', params)
}

// 添加审核信息
export async function approvalReview(params) {
    return await request.post(api + 'approval/approval', params)
}

// 获取通讯录
export async function fetchMailList(params) {
    return await request.get(api + 'approveDetails/addressList', {params})
}

// 银行卡信息
export async function bankCardInfo(params) {
    return await request.get(api + 'approveDetails/bankCardInfo', {params})
}

// 基本信息
export async function basicInfo(params) {
    return await request.get(api + 'approveDetails/basicInfo', {params})
}

// 运营商详细通话记录
export async function callInfo(params) {
    return await request.get(api + 'approveDetails/callInfo', {params})
}

// 运营商通话记录top50
export async function callInfoTop50(params) {
    return await request.get(api + 'approveDetails/callInfoTop50', {params})
}

// 本地通话记录
export async function callLog(params) {
    return await request.get(api + 'approveDetails/callLog', {params})
}

// 获取多头报告
export async function dtOldSource(params) {
    return await request.get(api + 'approveDetails/dtOldSource', {params})
}

// 本地通话记录top50
export async function callLogTop50(params) {
    return await request.get(api + 'approveDetails/callLogTop50', {params})
}

// 取消虚拟卡
export async function cancelVirtualAccount(params) {
    return await request.post(api + 'approveDetails/cancelVirtualAccount', params)
}

// 回显虚拟卡
export async function echoVirtualCard(params) {
    return await request.get(api + 'approveDetails/echoVirtualCard', {params})
}

// 税卡信息
export async function rfcInfo(params) {
    return await request.get(api + 'approveDetails/rfcInfo', {params})
}

// 身份证信息
export async function idCardInfo(params) {
    return await request.get(api + 'approveDetails/idCardInfo', {params})
}

// 收入消费证明
export async function incomeConsume(params) {
    return await request.get(api + 'approveDetails/incomeConsume', {params})
}

// 贷款app
export async function loanApp(params) {
    return await request.get(api + 'approveDetails/loanApp', {params})
}

// 贷款app数量
export async function loanAppCount(params) {
    return await request.get(api + 'approveDetails/loanAppCount', {params})
}

// 贷款记录
export async function loanInfo(params) {
    return await request.get(api + 'approveDetails/loanInfo', {params})
}

// 有效贷款统计
export async function loanStatistics(params) {
    return await request.get(api + 'approveDetails/loanStatistics', {params})
}

// 短信记录
export async function messageInfo(params) {
    return await request.get(api + 'approveDetails/messageInfo', {params})
}

// 运营商报告
export async function operatorsReport(params) {
    return await request.get(api + 'approveDetails/operatorsReport', {params})
}

// 共库信息
export async function querySharedLibrary(params) {
    return await request.get(api + 'approveDetails/querySharedLibrary', {params})
}

// 查询虚拟卡
export async function queryVirtualAccount(params) {
    return await request.get(api + 'approveDetails/queryVirtualAccount', {params})
}

// 生成虚拟卡
export async function registerVirtualAccount(params) {
    return await request.post(api + 'approveDetails/registerVirtualAccount', params)
}

// 风险报告
export async function riskReport(params) {
    return await request.get(api + 'approveDetails/riskReport', {params})
}
// 话费充值记录
export async function rechargeInfo(params) {
    return await request.get(api + 'approveDetails/rechargeInfo', {params})
}

// 机审报告
export async function rulesReport(params) {
    return await request.get(api + 'approveDetails/rulesReport', {params})
}

// 审核原因查询
export async function selectAuditCause(params) {
    return await request.get(api + 'approveDetails/selectAuditCause', {params})
}

// 黑名单原因查询
export async function selectBlacklistCause(params) {
    return await request.get(api + 'approveDetails/selectBlacklistCause', {params})
}

// 审核信息
export async function trustInfoSearch(params) {
    return await request.get(api + 'approveDetails/trustInfoSearch', {params})
}

// 审核信息照片上传
export async function uploadTrustInfo(params) {
    return await request.post(api + 'approveDetails/uploadTrustInfo', params)
}

// 紧急联系人
export async function urgentContacts(params) {
    return await request.get(api + 'approveDetails/urgentContacts', {params})
}

// 工作信息
export async function workInfo(params) {
    return await request.get(api + 'approveDetails/workInfo', {params})
}


// 全部订单搜索
export async function fetchAllOrderList(params) {
    return await request.get(api + 'approval/allOrderSearch', {params})
}


// 审批金额
export async function approvalAmount(params) {
    return await request.get(api + 'approval/approvalAmount', {params})
}

// 审批周期
export async function approvalLoanTerm(params) {
    return await request.get(api + 'approval/approvalLoanTerm', {params})
}

// 待办搜索
export async function fetchBackOrderList(params) {
    return await request.get(api + 'approval/backlogSearch', {params})
}

// 批量通过
export async function batchPass(params) {
    return await request.post(api + 'approval/batchPass', params)
}

// 批量拒绝
export async function batchRefuse(params) {
    return await request.post(api + 'approval/batchRefuse', params)
}

// 已办订单搜索
export async function fetchHandledOrder(params) {
    return await request.get(api + 'approval/handledSearch', {params})
}

// 调单处理
export async function theSingleDispose(params) {
    return await request.post(api + 'approval/theSingleDispose', params)
}

// 调单搜索
export async function theSingleSearch(params) {
    return await request.get(api + 'approval/theSingleSearch', {params})
}


/**
 * 审核报表
 * **/

// 审核人效报表
export async function auditPeopleWorkReport(params) {
    return await request.get(api + 'report/auditPeopleWorkReport', {params})
}

// 审核人效报表总计
export async function auditPeopleWorkReportTotal(params) {
    return await request.get(api + 'report/auditPeopleWorkReportTotal', {params})
}

// 审核人效报表排名
export async function auditPeopleRankIng(params) {
    return await request.get(api + 'report/auditRanking', {params})
}

// 审核人效报表排名合计
export async function auditPeopleRankingTotal(params) {
    return await request.get(api + 'report/auditRankingTotal', {params})
}

// 订单申请报表
export async function orderApplyReport(params) {
    return await request.post(api + 'report/auditReport', params)
}

// 订单申请报表合计
export async function orderApplyReportTotal(params) {
    return await request.post(api + 'report/auditReportTotal', params)
}

/**
 * 订单拒绝报表
 * **/
// 机审拒绝订单报表
export async function machineRefuseStatistics(params) {
    return await request.post(orderApi + 'report/machineRefuseStatistics', params)
}

/**
 * 信审首页
 * **/
// 获取个人工作效率
export async function fetchPersonalEffect(params) {
    return await request.get(api + 'homePage/workEfficiency', {params})
}

// 获取个人今日总览
export async function fetchPersonalOverview(params) {
    return await request.get(api + 'homePage/todayData', {params})
}

// 获取个人排名
export async function fetchPersonalRanking(params) {
    return await request.get(api + 'homePage/personalRanking', {params})
}

// 获取个人工作质量
export async function fetchPersonalQuality(params) {
    return await request.get(api + 'homePage/jobContent', {params})
}

// 获取个人曲线图
export async function fetchPersonalDataTrend(params) {
    return await request.get(api + 'homePage/dataTrend', {params})
}

// 获取团队今日工作效率排行榜
export async function fetchTeamDataWordRanking(params) {
    return await request.get(api + 'homePage/teamWorkEfficiency', {params})
}

// 获取团队上周质量排行榜
export async function fetchTeamDataQualityRanking(params) {
    return await request.get(api + 'homePage/teamQuality', {params})
}

// 获取团队整体排名
export async function fetchTeamDataRanking(params) {
    return await request.get(api + 'homePage/teamRanking', {params})
}

// 获取团队上周整体通过率
export async function fetchTeamDataPassRate(params) {
    return await request.get(api + 'homePage/teamPass', {params})
}

// 获取团队曲线图
export async function fetchTeamDataCharts(params) {
    return await request.get(api + 'homePage/teamDataTrend', {params})
}
